import request from '@/utils/request'

// 分页条件查询所有数据
export const getAll = (page, pageSize, {
  exceptionUser, exceptionType, exceptionMethod, exceptionClass, exceptionArgs, exceptionDescription,
  begin, end
}) => {
  return request.get('/exceptionLog/page', {
    params: {
      page,
      pageSize,
      exceptionUser,
      exceptionType,
      exceptionMethod,
      exceptionClass,
      exceptionArgs,
      exceptionDescription,
      begin,
      end
    }
  })
}

// 根据id查询异常数据
export const getById = (id) => {
  return request.get('/exceptionLog/' + id)
}

// 根据id删除异常日志
export const deleteById = (id) => {
  return request.delete('/exceptionLog/' + id)
}
